package com.qy.bean ;

import java.util.Date;
import java.io.Serializable;

/**
* u_pay_info 
* @author zhangwenlong
* @date   Fri Feb 09 10:41:44 GMT+08:00 2018
*/ 
public class PayInfo extends DataObject  implements Serializable {

	/**
     * 
     */
    private static final long serialVersionUID = 1L;

	/**  */
	private int id;

	/** 第三方支付订单号唯一 */
	private String orderNum;

	/** 本地訂單號 */
	private String localOrderNum;

	/** 订单类型 */
	private int orderType;

	/** 订单号 */
	private int orderId;

	/** 用户id */
	private int userId;

	/** 订单价格 */
	private int orderPrice;

	/** 优惠券id */
	private int voucherId;

	/** 支付状态 */
	private int payStatus;

	/**  */
	private Date createDate;

	/** 完成时间 */
	private Date completeDate;

	public void setId(int id) {
		if (this.id != id) {
			this.id = id;
			setOp(Option.Update);
		}
	}

	public int getId() {
		return id;
	}

	public void setOrderNum(String orderNum) {
		if(this.orderNum == null || !this.orderNum.equals(orderNum)) {
			this.orderNum = orderNum;
			setOp(Option.Update);
		}
	}

	public String getOrderNum() {
		return orderNum;
	}

	public void setLocalOrderNum(String localOrderNum) {
		if(this.localOrderNum == null || !this.localOrderNum.equals(localOrderNum)) {
			this.localOrderNum = localOrderNum;
			setOp(Option.Update);
		}
	}

	public String getLocalOrderNum() {
		return localOrderNum;
	}

	public void setOrderType(int orderType) {
		if (this.orderType != orderType) {
			this.orderType = orderType;
			setOp(Option.Update);
		}
	}

	public int getOrderType() {
		return orderType;
	}

	public void setOrderId(int orderId) {
		if (this.orderId != orderId) {
			this.orderId = orderId;
			setOp(Option.Update);
		}
	}

	public int getOrderId() {
		return orderId;
	}

	public void setUserId(int userId) {
		if (this.userId != userId) {
			this.userId = userId;
			setOp(Option.Update);
		}
	}

	public int getUserId() {
		return userId;
	}

	public void setOrderPrice(int orderPrice) {
		if (this.orderPrice != orderPrice) {
			this.orderPrice = orderPrice;
			setOp(Option.Update);
		}
	}

	public int getOrderPrice() {
		return orderPrice;
	}

	public void setVoucherId(int voucherId) {
		if (this.voucherId != voucherId) {
			this.voucherId = voucherId;
			setOp(Option.Update);
		}
	}

	public int getVoucherId() {
		return voucherId;
	}

	public void setPayStatus(int payStatus) {
		if (this.payStatus != payStatus) {
			this.payStatus = payStatus;
			setOp(Option.Update);
		}
	}

	public int getPayStatus() {
		return payStatus;
	}

	public void setCreateDate(Date createDate) {
		if(this.createDate == null || !this.createDate.equals(createDate)) {
			this.createDate = createDate;
			setOp(Option.Update);
		}
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCompleteDate(Date completeDate) {
		if(this.completeDate == null || !this.completeDate.equals(completeDate)) {
			this.completeDate = completeDate;
			setOp(Option.Update);
		}
	}

	public Date getCompleteDate() {
		return completeDate;
	}

}

